/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TAXA")
public class TaxaProteu implements Serializable{

    @Id
    @Column(name="TX_ST_CODIGO")
    private String txStCodigo;
    @Column(name="TX_ST_NM")
    private String txStNm;
    @Column(name="TX_FL_VALOR")
    private Float txFlValor;
    @Column(name="TX_FL_QTDE")
    private Float txFlQtde;
    @Column(name="TX_FL_VLR_UNIT")
    private Float txFlVlrUnit;
    @Column(name="TX_ST_UNIDADE")
    private String txStUnidade;
    @Column(name="TX_ST_COD_FORNEC")
    private String txStCodFornec;
    @Column(name="TX_ST_COD_FAT")
    private String txStCodFat;
    @Column(name="TX_CH_COD_USA_MT")
    private String txChCodUsaMT;
    @Column(name="TX_ST_VIGENCIA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date txStVigencia;
    @Column(name="UNI_IN_CODIGO")
    private Integer uniInCodigo;
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Column(name="CON_ST_PLA_CODIGO")
    private String conStPlaCodigo;


    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getConStPlaCodigo() {
        return conStPlaCodigo;
    }

    public void setConStPlaCodigo(String conStPlaCodigo) {
        this.conStPlaCodigo = conStPlaCodigo;
    }

    public String getTxChCodUsaMT() {
        return txChCodUsaMT;
    }

    public void setTxChCodUsaMT(String txChCodUsaMT) {
        this.txChCodUsaMT = txChCodUsaMT;
    }

    public Float getTxFlQtde() {
        return txFlQtde;
    }

    public void setTxFlQtde(Float txFlQtde) {
        this.txFlQtde = txFlQtde;
    }

    public Float getTxFlValor() {
        return txFlValor;
    }

    public void setTxFlValor(Float txFlValor) {
        this.txFlValor = txFlValor;
    }

    public Float getTxFlVlrUnit() {
        return txFlVlrUnit;
    }

    public void setTxFlVlrUnit(Float txFlVlrUnit) {
        this.txFlVlrUnit = txFlVlrUnit;
    }

    public String getTxStCodFat() {
        return txStCodFat;
    }

    public void setTxStCodFat(String txStCodFat) {
        this.txStCodFat = txStCodFat;
    }

    public String getTxStCodFornec() {
        return txStCodFornec;
    }

    public void setTxStCodFornec(String txStCodFornec) {
        this.txStCodFornec = txStCodFornec;
    }

    public String getTxStCodigo() {
        return txStCodigo;
    }

    public void setTxStCodigo(String txStCodigo) {
        this.txStCodigo = txStCodigo;
    }

    public String getTxStNm() {
        return txStNm;
    }

    public void setTxStNm(String txStNm) {
        this.txStNm = txStNm;
    }

    public String getTxStUnidade() {
        return txStUnidade;
    }

    public void setTxStUnidade(String txStUnidade) {
        this.txStUnidade = txStUnidade;
    }

    public Date getTxStVigencia() {
        return txStVigencia;
    }

    public void setTxStVigencia(Date txStVigencia) {
        this.txStVigencia = txStVigencia;
    }

    public Integer getUniInCodigo() {
        return uniInCodigo;
    }

    public void setUniInCodigo(Integer uniInCodigo) {
        this.uniInCodigo = uniInCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TaxaProteu other = (TaxaProteu) obj;
        if ((this.txStCodigo == null) ? (other.txStCodigo != null) : !this.txStCodigo.equals(other.txStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 23 * hash + (this.txStCodigo != null ? this.txStCodigo.hashCode() : 0);
        return hash;
    }



}
